import 'package:flutter/material.dart';
import 'page.dart';

// information Parser
class BiliRouteParser extends RouteInformationParser<BiliPageStatus> {
  @override
  Future<BiliPageStatus> parseRouteInformation(
      RouteInformation routeInformation) {
    return Future.value(BiliPageStatus(routeInformation.location));
  }

  @override
  RouteInformation restoreRouteInformation(BiliPageStatus configuration) {
    return RouteInformation(location: configuration.path);
  }
}
